package engine.newUi
{
	import engine.flag.GameDefine;
	import engine.ui.MainUIManager;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;

	/**
	 *世界地图 
	 * @author yanghr
	 * 
	 */	
	public class WorldMapUI extends BaseUI
	{
		public var mapMC:NxClip;
		public var exitBtn:NxButton;
		public function WorldMapUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override public function  Init():void
		{
			WorldMapLogic.getInstance().Init();
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			MainUIManager.getInstance().intoScene(GameDefine.SceneType_Map);
		}
		override protected function	BeforeShow():void
		{
			WorldMapLogic.getInstance().BeforeShow();
		}
		override protected function	AfterHide():void
		{
			WorldMapLogic.getInstance().AfterHide();
			MainUIManager.getInstance().intoScene();
		}
	}
}